<?php


namespace app\cms\dto;

use iflow\annotation\value\validate\ValidateRule;
use iflow\Container\implement\annotation\tools\data\NotNull;

/**
 * 注册表单
 * Class registerForm
 * @package app\cms\dto
 */
class registerForm
{
    #[NotNull(error: '用户名不能为空')]
    public string $userName;

    #[NotNull(error: '密码不能为空')]
    public string $passWord;
    #[NotNull(error: '请确认密码')]
    public string $confirmPassword;

    public array $sms = []; // 注册验证码

    public string $email;
    public string $phone;

    // 第三方授权数据
    public array $oauth = [
        'openid' => '',
        'type' => ''
    ];
}